package com.nbjtjc.safe.mapper.edu;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.nbjtjc.safe.model.edu.EduEntryTrainingDepartment;
import com.nbjtjc.util.MyMapper;
@Mapper
public interface EduEntryTrainingDepartmentMapper extends MyMapper<EduEntryTrainingDepartment> {
	@Select("select * from edu_entry_training_department where training_id = #{id}")
	EduEntryTrainingDepartment findByTrainingId(@Param("id") int id);
	
	@Select("select training_date,training_hours from edu_entry_training_department where training_id = #{id}")
	EduEntryTrainingDepartment findByTrainingIdTable(@Param("id") int id);
}